home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1993…ch: Other People's Memory / ADC Developer CD (1993-03) (''Other People's Memory'')_iso / Dev.CD Mar 93.iso / Technical Documentation / Sample Code / DTS.Lib & Samples / DTS.Lib / DTS.Lib.headers / DTS.Lib.protos.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-10-22  |  7.5 KB  |  256 lines  |  [TEXT/MPS ]

  1. #ifndef __APPLEEVENTS__
  2. #include <AppleEvents.h>
  3. #endif
  4.  
  5. #ifndef __APPLETALK__
  6. #include <AppleTalk.h>
  7. #endif
  8.  
  9. #ifndef __LISTS__
  10. #include <Lists.h>
  11. #endif
  12.  
  13. #ifndef __MENUS__
  14. #include <Menus.h>
  15. #endif
  16.  
  17. #ifndef __PPCTOOLBOX__
  18. #include <PPCToolbox.h>
  19. #endif
  20.  
  21. #ifndef __STANDARDFILE__
  22. #include <StandardFile.h>
  23. #endif
  24.  
  25.  
  26. /************** AEConnect.c **************/
  27.  
  28. void            InitConnectAppleEvents(void);
  29. OSErr            SendConnect(FileRecHndl frHndl, char *theLocNBPType);
  30. WindowPtr        GetAEWindow(long windID_0, long windID_1);
  31.  
  32.  
  33.  
  34. /************** AERequired.c **************/
  35.  
  36. OSErr            InitRequiredAppleEvents(void);
  37.  
  38.  
  39.  
  40. /************** AEUtils.c **************/
  41.  
  42. #ifndef         __AEUTILS__
  43. #include        "AEUtils.h"
  44. #endif
  45.  
  46.  
  47.  
  48. /************** ATUtils.c **************/
  49.  
  50. #ifndef         __ATUTILS__
  51. #include        "ATUtils.h"
  52. #endif
  53.  
  54.  
  55.  
  56. /************** CtlHandler.c **************/
  57.  
  58. #ifndef         __CTLHANDLER__
  59. #include        "CtlHandler.h"
  60. #endif
  61.  
  62.  
  63.  
  64. /************** DoEvent.c **************/
  65.  
  66. void            DoEvent(EventRecord *event);
  67. void            DoCursor(void);
  68. void            DoActivate(WindowPtr window);
  69.  
  70.  
  71.  
  72. /************** File.c **************/
  73.  
  74. OSErr            DefaultInitDocument(FileRecHndl frHndl, short version,
  75.                                     short numUndos, short numSaveUndos);
  76. OSErr            DisposeDocument(FileRecHndl frHndl);
  77. OSErr            NewDocument(FileRecHndl *returnHndl, OSType sftype, Boolean incTitleNum);
  78. OSErr            OpenDocument(FileRecHndl *result, FSSpecPtr fileToOpen, char permission);
  79. OSErr            SaveDocument(FileRecHndl frHndl, WindowPtr window, short saveMode);
  80. void            ConvertOldToNewSFReply(SFReply *oldReply, StandardFileReply *newReply);
  81. Boolean            DisplayGetFile(StandardFileReply *reply, short typeListLen, SFTypeList typeList);
  82. Boolean            DisplayPutFile(StandardFileReply *reply);
  83. OSErr            UseDocResFile(FileRecHndl frHndl, short *oldRes, char perm);
  84. OSErr            CloseDocResFile(FileRecHndl frHndl);
  85. long            GetModNum(void);
  86. Boolean            GetDocDirty(FileRecHndl frHndl);
  87. Boolean            GetWindowDirty(WindowPtr window);
  88. void            SetDocDirty(FileRecHndl frHndl);
  89. void            SetWindowDirty(WindowPtr window);
  90. OSErr            SetDefault(short newVRefNum, long newDirID, short *oldVRefNum, long *oldDirID);
  91. OSErr            RestoreDefault(short oldVRefNum, long oldDirID);
  92.  
  93.  
  94.  
  95. /************** File2.c **************/
  96.  
  97. OSErr            InitDocument(FileRecHndl frHndl);
  98. long            InitDocumentSize(OSType sftype);
  99.  
  100.  
  101.  
  102. /************** Init.c **************/
  103.  
  104. void            Initialize(short moreMasters, long minHeap, long minSpace,
  105.                            ProcPtr init1, ProcPtr init2);
  106. void            StartDocuments(void);
  107.  
  108.  
  109.  
  110. /************** GWLayers.c **************/
  111.  
  112. #ifndef         __GWLAYERS__
  113. #include        "GWLayers.h"
  114. #endif
  115.  
  116.  
  117.  
  118. /************** ListControl.c **************/
  119.  
  120. #ifndef         __LISTCONTROL__
  121. #include        "ListControl.h"
  122. #endif
  123.  
  124.  
  125.  
  126. /************** Menu.c **************/
  127.  
  128. void            DoAdjustMenus(void);
  129. void            DoMenuCommand(long menuResult);
  130.  
  131.  
  132.  
  133. /************** PPC.c **************/
  134.  
  135. #ifndef         __PPC__
  136. #include        "PPC.h"
  137. #endif
  138.  
  139.  
  140.  
  141. /************** Print.c **************/
  142.  
  143. OSErr            PrintDocument(FileRecHndl frHndl, Boolean jobDlg, Boolean firstJob);
  144. void            DonePrinting(void);
  145. OSErr            PresentStyleDialog(FileRecHndl frHndl);
  146.  
  147.  
  148.  
  149. /************** TextEditControl.c **************/
  150.  
  151. #ifndef         __TEXTEDITCONTROL__
  152. #include        "TextEditControl.h"
  153. #endif
  154.  
  155.  
  156.  
  157. /************** TreeObj.c **************/
  158.  
  159. #ifndef         __TREEOBJ__
  160. #include        "TreeObj.h"
  161. #endif
  162.  
  163.  
  164.  
  165. /************** ViewHierarchy.c **************/
  166.  
  167. OSErr            VHInitDocument(FileRecHndl frHndl);
  168. long            VHFileTypeSize(void);
  169. void            VHRootInfo(TreeObjHndl root, char *cptr);
  170. void            VHFileRecInfo(TreeObjHndl root, char *cptr);
  171.  
  172.  
  173.  
  174. /************** Window.c **************/
  175.  
  176. OSErr            DoNewWindow(FileRecHndl frHndl, WindowPtr *retWindow,
  177.                             WindowPtr relatedWindow, WindowPtr behind);
  178. void            NewWindowTitle(WindowPtr window, StringPtr altTitle);
  179. Boolean            DisposeAllWindows(void);
  180. Boolean            DisposeOneWindow(WindowPtr window, short saveMode);
  181. WindowPtr        SetFilePort(FileRecHndl frHndl);
  182. void            DoResizeWindow(WindowPtr window, short oldh, short oldv);
  183. void            DoUpdateSeparate(WindowPtr window, RgnHandle *contRgn, RgnHandle *frameRgn);
  184. void            BeginContent(WindowPtr window);
  185. void            EndContent(WindowPtr window);
  186. void            AdjustScrollBars(WindowPtr window);
  187. void            GetContentOrigin(WindowPtr window, Point *contOrg);
  188. void            SetContentOrigin(WindowPtr window, long newh, long newv);
  189. void            GetContentRect(WindowPtr window, Rect *contRct);
  190. void            SetDocSize(FileRecHndl frHndl, long hSize, long vSize);
  191. void            SetSidebarSize(FileRecHndl frHndl, short newLeft, short newTop);
  192. void            SetScrollIndentSize(FileRecHndl frHndl, short newh, short newv);
  193. FileRecHndl        GetNextDocument(WindowPtr window, OSType sftype);
  194. WindowPtr        GetNextWindow(WindowPtr window, OSType sftype);
  195. WindowPtr        GetPreviousWindow(WindowPtr window);
  196. void            DoZoomWindow(WindowPtr window, EventRecord *event, short zoomDir);
  197. RgnHandle        DoCalcFrameRgn(WindowPtr window);
  198. RgnHandle        DoCalcScrollRgn(WindowPtr window);
  199. void            DoContentClick(WindowPtr window, EventRecord *event, Boolean firstClick);
  200. void            DoDragWindow(WindowPtr window, EventRecord *event, Rect bounds);
  201. void            DoDrawFrame(WindowPtr window);
  202. OSErr            DoFreeDocument(FileRecHndl frHndl);
  203. OSErr            DoFreeWindow(FileRecHndl frHndl, WindowPtr window);
  204. OSErr            DoImageDocument(FileRecHndl frHndl);
  205. OSErr            DoInitContent(FileRecHndl frHndl, WindowPtr window);
  206. Boolean            DoKeyDown(EventRecord *event);
  207. void            DoMouseDown(EventRecord *event);
  208. OSErr            DefaultFreeDocument(FileRecHndl frHndl);
  209. OSErr            DoReadDocument(FileRecHndl frHndl);
  210. OSErr            DoReadDocumentHeader(FileRecHndl frHndl);
  211. OSErr            DefaultReadDocument(FileRecHndl frHndl);
  212. OSErr            DefaultReadDocumentHeader(FileRecHndl frHndl);
  213. OSErr            DefaultReadDocumentFixup(FileRecHndl frHndl);
  214. OSErr            DoWriteDocument(FileRecHndl frHndl);
  215. OSErr            DoWriteDocumentHeader(FileRecHndl frHndl);
  216. OSErr            DefaultWriteDocument(FileRecHndl frHndl);
  217. OSErr            DefaultWriteDocumentHeader(FileRecHndl frHndl);
  218. void            DoResizeContent(WindowPtr window, short oldh, short oldv);
  219. void            DoScrollFrame(WindowPtr window, long dh, long dv);
  220. void            DoUndoFixup(FileRecHndl frHndl, Point contOrg, Boolean afterUndo);
  221. WindowPtr        GetOldLocWindow(short id, Ptr storage, Boolean vis, WindowPtr relWindow,
  222.                                 WindowPtr behind, Boolean inColor, Rect sizeInfo, long refCon);
  223. void            CleanSendBehind(WindowPtr window, WindowPtr afterWindow);
  224. void            CleanSendInFront(WindowPtr window, WindowPtr beforeWindow);
  225. void            HiliteWindows(void);
  226. void            UnhiliteWindows(void);
  227. void            DoUpdate(WindowPtr window);
  228. void            DoSetCursor(Cursor *cursor);
  229. CursPtr            DoSetResCursor(short crsrID);
  230. void            DoWindowCursor(void);
  231. WindowPtr        FrontWindowOfType(short wkind);
  232. short            HCenteredAlert(short alertID, WindowPtr relatedWindow, ModalFilterProcPtr filter);
  233.  
  234.  
  235.  
  236. /************** Window2.c **************/
  237.  
  238. void            CalcFrameRgn(FileRecHndl frHndl, WindowPtr window, RgnHandle rgn);
  239. void            ContentClick(WindowPtr window, EventRecord *event, Boolean firstCLick);
  240. Boolean            ContentKey(WindowPtr window, EventRecord *event, Boolean *passThrough);
  241. void            DrawFrame(FileRecHndl frHndl, WindowPtr window);
  242. OSErr            FreeDocument(FileRecHndl frHndl);
  243. OSErr            FreeWindow(FileRecHndl frHndl, WindowPtr window);
  244. OSErr            ImageDocument(FileRecHndl frHndl);
  245. OSErr            InitContent(FileRecHndl frHndl, WindowPtr window);
  246. OSErr            ReadDocument(FileRecHndl frHndl);
  247. void            ResizeContent(WindowPtr window, short oldh, short oldv);
  248. void            ScrollFrame(FileRecHndl frHndl, WindowPtr window, long dh, long dv);
  249. void            UndoFixup(FileRecHndl frHndl, Point contOrg, Boolean afterUndo);
  250. Boolean            WindowCursor(FileRecHndl frHndl, WindowPtr window, Point globalPt);
  251. void            WindowGoneFixup(WindowPtr window);
  252. OSErr            WriteDocument(FileRecHndl frHndl);
  253.  
  254.  
  255.  
  256.